/**
 * 
 */
package com.easidea.tim.entity.system;

import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.springside.core.dao.extend.Undeletable;

import com.easidea.tim.entity.BaseEntity;

/**
 * 会员分类，用于登记供应商、客户的等级
 * @author Harrison
 *
 */

@Entity(name="tim_system_membertype")
@org.hibernate.annotations.Entity(dynamicInsert=true,dynamicUpdate=true)
@DiscriminatorColumn(name="type", discriminatorType=DiscriminatorType.STRING)
@Cache(region="tim_system_membertype",usage=CacheConcurrencyStrategy.READ_WRITE)
@Undeletable(status="deleted")
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
public abstract class MemberType extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5902718835605855496L;

	private String name;

	/**
	 * @return the name
	 */
	@Column(name="name",nullable=false)
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	
}
